import api from '../utils/apiUtils';

// 图新验证码
export function getCode (params) {
  return api.get('/shop/auth/code', params);
}

export function login (params) {
  return api.post ('/shop/auth/login', params);
}

//短信登录授权
export function phoneNumber (params) {
  return api.post ('/shop/auth/login/phoneNumber', params);
}
//获取短信验证码
export function getMsgCode (params) {
  return api.post ('/shop/auth/getMsgCode', params);
}


// 获取用户基本信息
// export function getInfo (params) {
//   // return api.get ('/sys/user/info', params);
//   return api.get (`/shop/menus/build`, params);
// }

// 获取菜单信息
export function getMenus (params) {
  return api.get ('/shop/menus/build', params);
}

// 登出
export function logoutApi (params) {
  return api.get ('/auth/sys/logout', params);
}
